<%--
  Created by IntelliJ IDEA.
  User: libofeng
  Date: 2009-6-18
  Time: 13:36:37
  Description: 系统错误
--%>
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ page import="org.apache.commons.logging.LogFactory" %>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils" %>
<%@ include file="/WEB-INF/pages/inc/taglibs.jsp" %>
<%
    if (exception == null) {
        response.sendRedirect(request.getContextPath() + "/");
        return;
    }

    //Exception from JSP didn't log yet ,should log it here.
    String requestUri = (String) request.getAttribute("javax.servlet.error.request_uri");
    LogFactory.getLog(requestUri).error(exception.getMessage(), exception);
%>
<html>
<head>
    <title>管理中心 - 发生系统错误</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <link href="/themes/default/css/main.css" rel="stylesheet" type="text/css"/>
    <link href="/themes/default/css/errors.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript">
        if (self == top) {
            $("#right_head").hide();
        }
    </script>
</head>
<body>
<div id="right_head" style="display:none;">
    <span style="float:left;">
    <strong>当前位置</strong>：管理中心 &gt; 发生系统错误
        </span>
        <span style="float:right; padding-right:15px;">已登录：
        <a href="${ctx}/j_spring_security_logout" target="_top">退出</a>
        </span>
</div>
<div class="error">
    <div id="Errortext">
        <h1>系统发生未知错误</h1>

        <h2><%=exception.getMessage()%>
        </h2>
    </div>
</div>
</body>
</html>